package Server;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class BangXML implements Serializable {
	private List<Object[]> data;
	private List<String> names;
	private List<String> typeData;
	private String tableName;
	private List<Boolean> khoaChinh;
	public BangXML(MyTable myTable) {
		data = myTable.layDanhSachDuLieu();
		names = myTable.layDanhSachTruongDuLieu();
		typeData = myTable.layDanhSachKieuDuLieu();
		tableName = myTable.layTenBang();
		khoaChinh = myTable.layDanhSachKhoaChinh();
	}
	public List<Object[]> getData() {
		return data;
	} 
	public void setData(List<Object[]> data) {
		this.data = data;
	}
	public void setNames(List<String> names) {
		this.names = names;
	}
	public void setTypeData(List<String> typeData) {
		this.typeData = typeData;
	}
	public List<String> getNames() {
		return names;
	}
	public List<String> getTypeData() {
		return typeData;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public List<Boolean> getKhoaChinh() {
		return khoaChinh;
	}
	public void setKhoaChinh(List<Boolean> khoaChinh) {
		this.khoaChinh = khoaChinh;
	}
	public BangXML() {
	}
}

